// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.ideasindustry.photoontaje.service;
/**
 * @see com.ideasindustry.photoontaje.service.PictureRepository
 */
public class PictureRepositoryDaoImpl
    extends com.ideasindustry.photoontaje.service.PictureRepositoryDaoBase
{
    /**
     * @see com.ideasindustry.photoontaje.service.PictureRepositoryDao#toPictureRepositoryVO(com.ideasindustry.photoontaje.service.PictureRepository, com.ideasindustry.photoontaje.api.PictureRepositoryVO)
     */
    public void toPictureRepositoryVO(
        com.ideasindustry.photoontaje.service.PictureRepository source,
        com.ideasindustry.photoontaje.api.PictureRepositoryVO target)
    {
        // @todo verify behavior of toPictureRepositoryVO
        super.toPictureRepositoryVO(source, target);
        // WARNING! No conversion for target.tags (can't convert source.getTags():com.ideasindustry.photoontaje.service.Tag to com.ideasindustry.photoontaje.api.TagVO[]
    }


    /**
     * @see com.ideasindustry.photoontaje.service.PictureRepositoryDao#toPictureRepositoryVO(com.ideasindustry.photoontaje.service.PictureRepository)
     */
    public com.ideasindustry.photoontaje.api.PictureRepositoryVO toPictureRepositoryVO(final com.ideasindustry.photoontaje.service.PictureRepository entity)
    {
        // @todo verify behavior of toPictureRepositoryVO
        return super.toPictureRepositoryVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.ideasindustry.photoontaje.service.PictureRepository loadPictureRepositoryFromPictureRepositoryVO(com.ideasindustry.photoontaje.api.PictureRepositoryVO pictureRepositoryVO)
    {
        // @todo implement loadPictureRepositoryFromPictureRepositoryVO
        throw new java.lang.UnsupportedOperationException("com.ideasindustry.photoontaje.service.loadPictureRepositoryFromPictureRepositoryVO(com.ideasindustry.photoontaje.api.PictureRepositoryVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.ideasindustry.photoontaje.service.PictureRepository pictureRepository = this.load(pictureRepositoryVO.getId());
        if (pictureRepository == null)
        {
            pictureRepository = com.ideasindustry.photoontaje.service.PictureRepository.Factory.newInstance();
        }
        return pictureRepository;
        */
    }

    
    /**
     * @see com.ideasindustry.photoontaje.service.PictureRepositoryDao#pictureRepositoryVOToEntity(com.ideasindustry.photoontaje.api.PictureRepositoryVO)
     */
    public com.ideasindustry.photoontaje.service.PictureRepository pictureRepositoryVOToEntity(com.ideasindustry.photoontaje.api.PictureRepositoryVO pictureRepositoryVO)
    {
        // @todo verify behavior of pictureRepositoryVOToEntity
        com.ideasindustry.photoontaje.service.PictureRepository entity = this.loadPictureRepositoryFromPictureRepositoryVO(pictureRepositoryVO);
        this.pictureRepositoryVOToEntity(pictureRepositoryVO, entity, true);
        return entity;
    }


    /**
     * @see com.ideasindustry.photoontaje.service.PictureRepositoryDao#pictureRepositoryVOToEntity(com.ideasindustry.photoontaje.api.PictureRepositoryVO, com.ideasindustry.photoontaje.service.PictureRepository)
     */
    public void pictureRepositoryVOToEntity(
        com.ideasindustry.photoontaje.api.PictureRepositoryVO source,
        com.ideasindustry.photoontaje.service.PictureRepository target,
        boolean copyIfNull)
    {
        // @todo verify behavior of pictureRepositoryVOToEntity
        super.pictureRepositoryVOToEntity(source, target, copyIfNull);
    }

}